package dao;

import entity.Administrator;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdministratorDao {
    public Administrator exits(Administrator admin);//判断是否有这个用户
    public List<Administrator> showRole(@Param("roleName") String roleName,@Param("positionId") int PositionId,@Param("offset") int offset,@Param("limit") int limit);//展示所有的用户信息
    public int total(@Param("roleNames") String roleName,@Param("positionIds") int PositionId);//根据模糊姓名查询有多少用户
    public void adduser(Administrator admin);//添加用户
    public void deluser(@Param("aid") int aid);//删除用户
    public void upuser(Administrator admin);//修改用户
    public String flagUserName(String username);//根据用户名判断是否有该账户
}
